package com.woniuxy.qiantai.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author firstGroup
 * @since 2023-02-22 11:56:24
 */
@Getter
@Setter
@TableName("t_order")
public class Order {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("shop_id")
    private Integer shopId;

    @TableField("address_id")
    private Integer addressId;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField("sum_price")
    private BigDecimal sumPrice;

    @TableField("status")
    private Integer status;

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userId=" + userId +
                ", shopId=" + shopId +
                ", addressId=" + addressId +
                ", createTime=" + createTime +
                ", sumPrice=" + sumPrice +
                ", status=" + status +
                '}';
    }
}
